---
title: Shiny Button
date: 2024-05-24
description: A shiny button component with dynamic styles in the dark mode or light mode.
author: nyxb
published: true
---

<ComponentPreview name="shiny-button-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add shiny-button
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/shiny-button.tsx
```

<ComponentSource name="shiny-button" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop | Type   | Description         | Default        |
| ---- | ------ | ------------------- | -------------- |
| text | string | The text to display | "shiny button" |

